package com.itheima.fileIO;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class IODemo03 {
    public static void main(String[] args) {
        FileOutputStream fos=null;
        try {
             fos=new FileOutputStream("FileIO\\a.txt");
            fos.write(97);
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
            if (fos!=null){
                try {
                    fos.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }

    }
}
